﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LIU.Framework.Core.Log
{
    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILogger
    {
        /// <summary>
        /// 记录调试信息
        /// </summary>
        /// <param name="message"></param>
        void LogDebug(string message);

        /// <summary>
        /// 记录调试信息
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="message"></param>
        void LogDebug(Exception exception, string message);

        /// <summary>
        /// 记录警告信息
        /// </summary>
        /// <param name="message"></param>
        void LogWarning(string message);

        /// <summary>
        /// 记录警告信息
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="message"></param>
        void LogWarning(Exception exception, string message);

        /// <summary>
        /// 记录错误信息
        /// </summary>
        /// <param name="message"></param>
        void LogError(string message);

        /// <summary>
        /// 记录错误信息
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="message"></param>
        void LogError(Exception exception, string message);

        /// <summary>
        /// 记录信息
        /// </summary>
        /// <param name="message"></param>
        void LogInformation(string message);

        /// <summary>
        /// 记录信息
        /// </summary>
        /// <param name="exception"></param>
        /// <param name="message"></param>
        void LogInformation(Exception exception, string message);
    }

}
 